package com.wf.messageBoard;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

//将微服务注册进nacos
@EnableDiscoveryClient
@SpringBootApplication
@Slf4j
@MapperScan("com.wf.messageBoard.mapper")
//开启Feign
@EnableFeignClients
//解决引入spring注入的工具类，无法找到的错误
@Import({
        com.wf.apicommons.utils.RedisUtils.class,
        com.wf.apicommons.config.RedisConfig.class,
        com.wf.apicommons.config.MyBatisPlusConfig.class,
        com.wf.apicommons.config.FeignConfig.class
})
public class MessageBoardApplication {
    public static void main(String[] args) {
        SpringApplication.run(MessageBoardApplication.class, args);
        log.info("留言管理微服务启动成功--端口号:9004");
    }
}
